# -*- coding:utf-8 -*-
# Author:Ami

class Dog(object):
    n = 333
    name = "adc"
    def __init__(self, name):
        self.name = name
        self.__food = None

    @property
    def eat(self):
        print("%s is eating %s" % (self.name,self.__food))

    @eat.setter
    def eat(self, food):
        print("set to food:", food)
        self.__food = food

    @eat.deleter
    def eat(self):
        del self.__food
        print("删完了")
    
d = Dog("Ami")
# d.eat
# d.eat = "包子"
# d.eat
#
# del d.eat
#
# d.eat


